<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>mbed-lib: mbed.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">mbed-lib
   &#160;<span id="projectnumber">1.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">mbed.h</div>  </div>
</div>
<div class="contents">
<a href="mbed_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) Ludo Visser</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * This file is part of the mbed-lib project, and is distributed under the</span>
<a name="l00004"></a>00004 <span class="comment"> * terms of the MIT License. The full license agreement text can be found</span>
<a name="l00005"></a>00005 <span class="comment"> * in the LICENSE file.</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;LPC17xx.h&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="mbed__can_8h.html" title="Various definitions for the CANopen implementation.">mbed_can.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="mbed__gpio_8h.html" title="Various definition for General Purpose Input/Output (GPIO).">mbed_gpio.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;mbed_led.h&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;mbed_musb.h&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;mbed_serial.h&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;mbed_timer.h&quot;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef MBED_H</span>
<a name="l00032"></a><a class="code" href="mbed_8h.html#a585d2ebc857bc36c4b9c69a08ff193d5">00032</a> <span class="preprocessor"></span><span class="preprocessor">#define MBED_H  </span>
<a name="l00039"></a><a class="code" href="group__initflags.html#ga890a7b756538547816bf1d293d55f08f">00039</a> <span class="preprocessor">#define INIT_LED        (1 &lt;&lt; 1)        </span>
<a name="l00040"></a><a class="code" href="group__initflags.html#ga19a97bd2f01c3b5c8fd9e5361fd7d26f">00040</a> <span class="preprocessor">#define INIT_MUSB       (1 &lt;&lt; 2)        </span>
<a name="l00041"></a><a class="code" href="group__initflags.html#ga17765237b60a9dce9252efde0621fa59">00041</a> <span class="preprocessor">#define INIT_SERIAL0    (1 &lt;&lt; 3)        </span>
<a name="l00042"></a><a class="code" href="group__initflags.html#ga5d0eb8e9e017ca805867632c31ef8133">00042</a> <span class="preprocessor">#define INIT_SERIAL1    (1 &lt;&lt; 4)        </span>
<a name="l00043"></a><a class="code" href="group__initflags.html#ga3bad7b6ba765fd457119515f47aa455c">00043</a> <span class="preprocessor">#define INIT_SERIAL2    (1 &lt;&lt; 5)        </span>
<a name="l00044"></a><a class="code" href="group__initflags.html#ga1697cd805952df869ad2828947b63416">00044</a> <span class="preprocessor">#define INIT_CAN0       (1 &lt;&lt; 6)        </span>
<a name="l00045"></a><a class="code" href="group__initflags.html#gad09d20d08a77d3a19f1671f8ff94cb08">00045</a> <span class="preprocessor">#define INIT_CAN1       (1 &lt;&lt; 7)        </span>
<a name="l00046"></a><a class="code" href="group__initflags.html#ga6809fc6f42afcf396eba260f863619e7">00046</a> <span class="preprocessor">#define INIT_TIMER0     (1 &lt;&lt; 8)        </span>
<a name="l00047"></a><a class="code" href="group__initflags.html#ga15c42037d9ed8c95bd383fea361ba4a7">00047</a> <span class="preprocessor">#define INIT_TIMER1     (1 &lt;&lt; 9)        </span>
<a name="l00048"></a><a class="code" href="group__initflags.html#ga7b2430ec76c421dbdecd25bcc5c01243">00048</a> <span class="preprocessor">#define INIT_TIMER2     (1 &lt;&lt; 10)       </span>
<a name="l00049"></a><a class="code" href="group__initflags.html#gac95954aa2377ff4c9a3f14898c7543a6">00049</a> <span class="preprocessor">#define INIT_TIMER3     (1 &lt;&lt; 11)       </span>
<a name="l00050"></a><a class="code" href="group__initflags.html#ga87bb1341421f097efaf535b18c459e40">00050</a> <span class="preprocessor">#define INIT_GPI        (1 &lt;&lt; 12)       </span>
<a name="l00051"></a><a class="code" href="group__initflags.html#ga90ae372033d19b23c015750c3ccf6aef">00051</a> <span class="preprocessor">#define INIT_GPO        (1 &lt;&lt; 13)       </span>
<a name="l00058"></a><a class="code" href="group__statusflags.html#ga8858b12ceefcc88cf7bf96a588752ebb">00058</a> <span class="preprocessor">#define MBED_SYS_INIT           (1 &lt;&lt; 0)        </span>
<a name="l00059"></a><a class="code" href="group__statusflags.html#ga8c5b469d0e4f3e9554c933261a018845">00059</a> <span class="preprocessor">#define MBED_LED_INIT           (1 &lt;&lt; 1)        </span>
<a name="l00060"></a><a class="code" href="group__statusflags.html#ga81a679148a414653b1d6090b3e1214c7">00060</a> <span class="preprocessor">#define MBED_MUSB_INIT          (1 &lt;&lt; 2)        </span>
<a name="l00061"></a><a class="code" href="group__statusflags.html#ga7466f19fdce79c45c69688a3511e79b6">00061</a> <span class="preprocessor">#define MBED_SERIAL0_INIT       (1 &lt;&lt; 3)        </span>
<a name="l00062"></a><a class="code" href="group__statusflags.html#ga801545f9ce38574b40150a3461fb642e">00062</a> <span class="preprocessor">#define MBED_SERIAL1_INIT       (1 &lt;&lt; 4)        </span>
<a name="l00063"></a><a class="code" href="group__statusflags.html#gac451bd45a5e897f018766170985d473e">00063</a> <span class="preprocessor">#define MBED_SERIAL2_INIT       (1 &lt;&lt; 5)        </span>
<a name="l00064"></a><a class="code" href="group__statusflags.html#gac5fb9311dcb54b0c6240e52dfd058a22">00064</a> <span class="preprocessor">#define MBED_CAN0_INIT          (1 &lt;&lt; 6)        </span>
<a name="l00065"></a><a class="code" href="group__statusflags.html#gaaedb5828d2d465c1429791f791f58d70">00065</a> <span class="preprocessor">#define MBED_CAN1_INIT          (1 &lt;&lt; 7)        </span>
<a name="l00066"></a><a class="code" href="group__statusflags.html#gafb22fc3b69ec6e91c291d079f1cafc98">00066</a> <span class="preprocessor">#define MBED_TIMER0_INIT        (1 &lt;&lt; 8)        </span>
<a name="l00067"></a><a class="code" href="group__statusflags.html#gab1da646a48686df94af88d39699921c7">00067</a> <span class="preprocessor">#define MBED_TIMER1_INIT        (1 &lt;&lt; 9)        </span>
<a name="l00068"></a><a class="code" href="group__statusflags.html#ga8b515c7c322a10fb44d653a36c2512b8">00068</a> <span class="preprocessor">#define MBED_TIMER2_INIT        (1 &lt;&lt; 10)       </span>
<a name="l00069"></a><a class="code" href="group__statusflags.html#ga1f12fd142a9b44ec7131db2ea4892d1a">00069</a> <span class="preprocessor">#define MBED_TIMER3_INIT        (1 &lt;&lt; 11)       </span>
<a name="l00070"></a><a class="code" href="group__statusflags.html#ga6cc7374507551518efc45c864d0e5dc7">00070</a> <span class="preprocessor">#define MBED_GPI_INIT           (1 &lt;&lt; 12)       </span>
<a name="l00071"></a><a class="code" href="group__statusflags.html#ga0d617ad7805e40e79ed18bb8919f71e9">00071</a> <span class="preprocessor">#define MBED_GPO_INIT           (1 &lt;&lt; 13)       </span>
<a name="l00078"></a><a class="code" href="group__gpio.html#gaacb8fb12404667d72e56cb0ad87f4b6e">00078</a> <span class="preprocessor">#define MBED_GPIOX      (1 &lt;&lt; 0)        </span>
<a name="l00079"></a><a class="code" href="group__gpio.html#gad253114f5a5b4c752163d35f07d87aeb">00079</a> <span class="preprocessor">#define MBED_GPIO5      (1 &lt;&lt; 1)        </span>
<a name="l00080"></a><a class="code" href="group__gpio.html#ga9b8aa26eb40edafd1d68a63d3eb93b50">00080</a> <span class="preprocessor">#define MBED_GPIO6      (1 &lt;&lt; 2)        </span>
<a name="l00081"></a><a class="code" href="group__gpio.html#ga34573106dd56da5711f447c3efdc1620">00081</a> <span class="preprocessor">#define MBED_GPIO7      (1 &lt;&lt; 3)        </span>
<a name="l00082"></a><a class="code" href="group__gpio.html#ga2b5c029d2c99bd6963c1c4dae441ea11">00082</a> <span class="preprocessor">#define MBED_GPIO8      (1 &lt;&lt; 4)        </span>
<a name="l00083"></a><a class="code" href="group__gpio.html#ga3cfeec8de94480ebf86aaaec5e46579f">00083</a> <span class="preprocessor">#define MBED_GPIO9      (1 &lt;&lt; 5)        </span>
<a name="l00084"></a><a class="code" href="group__gpio.html#ga7984098c217c526452bf0e554b538738">00084</a> <span class="preprocessor">#define MBED_GPIO10     (1 &lt;&lt; 6)        </span>
<a name="l00085"></a><a class="code" href="group__gpio.html#ga34c83eeaa0cbd41dc92c79f0d12ff859">00085</a> <span class="preprocessor">#define MBED_GPIO11     (1 &lt;&lt; 7)        </span>
<a name="l00086"></a><a class="code" href="group__gpio.html#gafc67bdfefd071f9bcf738b3006dddbd1">00086</a> <span class="preprocessor">#define MBED_GPIO12     (1 &lt;&lt; 8)        </span>
<a name="l00087"></a><a class="code" href="group__gpio.html#gaa42fbdcaa61b7c52235ccd30e9e6bc1c">00087</a> <span class="preprocessor">#define MBED_GPIO13     (1 &lt;&lt; 9)        </span>
<a name="l00088"></a><a class="code" href="group__gpio.html#gae4698fb2f26e6dca2bfa31e969a2d749">00088</a> <span class="preprocessor">#define MBED_GPIO14     (1 &lt;&lt; 10)       </span>
<a name="l00089"></a><a class="code" href="group__gpio.html#gaac0ef95b8b9b9f773cceb982ff7f7c70">00089</a> <span class="preprocessor">#define MBED_GPIO15     (1 &lt;&lt; 11)       </span>
<a name="l00090"></a><a class="code" href="group__gpio.html#ga66f0962480d688dc918a5b5add97243d">00090</a> <span class="preprocessor">#define MBED_GPIO16     (1 &lt;&lt; 12)       </span>
<a name="l00091"></a><a class="code" href="group__gpio.html#gabe6426f8fb921ccee4d7c40f12a6f8d8">00091</a> <span class="preprocessor">#define MBED_GPIO17     (1 &lt;&lt; 13)       </span>
<a name="l00092"></a><a class="code" href="group__gpio.html#ga38468fada0b5d19b0696730dd364e8be">00092</a> <span class="preprocessor">#define MBED_GPIO18     (1 &lt;&lt; 14)       </span>
<a name="l00093"></a><a class="code" href="group__gpio.html#ga81e9ad7d876a9782a72fad156e366bf7">00093</a> <span class="preprocessor">#define MBED_GPIO19     (1 &lt;&lt; 15)       </span>
<a name="l00094"></a><a class="code" href="group__gpio.html#gaec677fe7a5798f17c168289866a5a5cf">00094</a> <span class="preprocessor">#define MBED_GPIO20     (1 &lt;&lt; 16)       </span>
<a name="l00095"></a><a class="code" href="group__gpio.html#ga94c3ad25aa658d4b7e44580c2b154a68">00095</a> <span class="preprocessor">#define MBED_GPIO21     (1 &lt;&lt; 17)       </span>
<a name="l00096"></a><a class="code" href="group__gpio.html#gaedb6d4f1f3eef2dc91e4518d12f855b6">00096</a> <span class="preprocessor">#define MBED_GPIO22     (1 &lt;&lt; 18)       </span>
<a name="l00097"></a><a class="code" href="group__gpio.html#ga8ea2e014cc16bba3580c743a99d2fbe1">00097</a> <span class="preprocessor">#define MBED_GPIO23     (1 &lt;&lt; 19)       </span>
<a name="l00098"></a><a class="code" href="group__gpio.html#ga51051c40e7fdedc986721c121c17ca86">00098</a> <span class="preprocessor">#define MBED_GPIO24     (1 &lt;&lt; 20)       </span>
<a name="l00099"></a><a class="code" href="group__gpio.html#ga8e029e6398dc9c44976dc97e6962fa06">00099</a> <span class="preprocessor">#define MBED_GPIO25     (1 &lt;&lt; 21)       </span>
<a name="l00100"></a><a class="code" href="group__gpio.html#ga976bffc5ef5ee8772cf17ced534e0dbe">00100</a> <span class="preprocessor">#define MBED_GPIO26     (1 &lt;&lt; 22)       </span>
<a name="l00101"></a><a class="code" href="group__gpio.html#gaacbb6dc7856d32e20dbb47bbcf8badc6">00101</a> <span class="preprocessor">#define MBED_GPIO27     (1 &lt;&lt; 23)       </span>
<a name="l00102"></a><a class="code" href="group__gpio.html#ga0c76627039f7fc1f2873534512375e90">00102</a> <span class="preprocessor">#define MBED_GPIO28     (1 &lt;&lt; 24)       </span>
<a name="l00103"></a><a class="code" href="group__gpio.html#ga693bbfe2de386adbc85417df1e0385ea">00103</a> <span class="preprocessor">#define MBED_GPIO29     (1 &lt;&lt; 25)       </span>
<a name="l00104"></a><a class="code" href="group__gpio.html#gad1c0b73c84f008fa34065c49ab5857da">00104</a> <span class="preprocessor">#define MBED_GPIO30     (1 &lt;&lt; 26)       </span>
<a name="l00111"></a><a class="code" href="group__ports.html#gaaa7af21ade35f3662f2ae800a5553535">00111</a> <span class="preprocessor">#define MBED_GPIO_P0    (MBED_GPIO5 | MBED_GPIO6 | MBED_GPIO7 | MBED_GPIO8 | MBED_GPIO9 | MBED_GPIO10 | MBED_GPIO11 | MBED_GPIO12 | MBED_GPIO13 | MBED_GPIO14 | MBED_GPIO15 | MBED_GPIO16 | MBED_GPIO17 | MBED_GPIO18 | MBED_GPIO27 | MBED_GPIO28 | MBED_GPIO29 | MBED_GPIO30)                  </span>
<a name="l00112"></a><a class="code" href="group__ports.html#ga569a818860b2b687c386c71b90245fd3">00112</a> <span class="preprocessor">#define MBED_GPIO_P1    (MBED_GPIO19 | MBED_GPIO20)                                                             </span>
<a name="l00113"></a><a class="code" href="group__ports.html#gafbcb7439f01e451b6fc3e37d9c865b50">00113</a> <span class="preprocessor">#define MBED_GPIO_P2    (MBED_GPIO21 | MBED_GPIO22 | MBED_GPIO23 | MBED_GPIO24 | MBED_GPIO25 | MBED_GPIO26)     </span>
<a name="l00120"></a><a class="code" href="group__deviceid.html#ga5f5ef3a71b090b481608153f906dc40c">00120</a> <span class="preprocessor">#define MBED_SERIAL0    0               </span>
<a name="l00121"></a><a class="code" href="group__deviceid.html#ga625f82c50401a48c2a8cb820e25ae10f">00121</a> <span class="preprocessor">#define MBED_SERIAL1    1               </span>
<a name="l00122"></a><a class="code" href="group__deviceid.html#gae49570abdae0dc7af0215677beecba41">00122</a> <span class="preprocessor">#define MBED_SERIAL2    2               </span>
<a name="l00123"></a><a class="code" href="group__deviceid.html#ga5d9fb1514d948fa58e12c5769769c5b8">00123</a> <span class="preprocessor">#define MBED_CAN0       0               </span>
<a name="l00124"></a><a class="code" href="group__deviceid.html#ga4bda50dc8e10e712c61ac5f953307e09">00124</a> <span class="preprocessor">#define MBED_CAN1       1               </span>
<a name="l00125"></a><a class="code" href="group__deviceid.html#gaf9eaf12c281f8206813424a597b90dd8">00125</a> <span class="preprocessor">#define MBED_TIMER0     0               </span>
<a name="l00126"></a><a class="code" href="group__deviceid.html#ga7748e6a07bc0bd2870b0e7527591bced">00126</a> <span class="preprocessor">#define MBED_TIMER1     1               </span>
<a name="l00127"></a><a class="code" href="group__deviceid.html#ga4194d031e8416ecc94d053ed5df56cbd">00127</a> <span class="preprocessor">#define MBED_TIMER2     2               </span>
<a name="l00128"></a><a class="code" href="group__deviceid.html#gaff89a8a032a9000630a74e802fe79ee6">00128</a> <span class="preprocessor">#define MBED_TIMER3     3               </span>
<a name="l00134"></a><a class="code" href="mbed_8h.html#a1fcdabc48561cdbf457f8ebf3f061165">00134</a> <span class="preprocessor">uint32_t mbedStatus;</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span>
<a name="l00136"></a>00136 <span class="comment">/* Function definitions. */</span>
<a name="l00137"></a>00137 <span class="keywordtype">void</span> initSys(uint32_t);
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#endif</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span>
</pre></div></div>
</div>


<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 18 2012 14:53:28 for mbed-lib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
